package com.mh.study.jackson.annotations;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 * @author meng.han
 * @since 2021-11-26
 */
@JsonPropertyOrder(alphabetic = true)
public class MyBean2 {
    public int id;
    private String name;

    public MyBean2(int id, String name) {
        this.id = id;
        this.name = name;
    }

    @JsonGetter("name")
    public String getTheName() {
        return name;
    }
}
